// Created by Chee Hwa

Ext.define("MajorProjectSenchaTouch.view.MyAccountModule.MyAccountLogin", {
	extend: 'Ext.Container',
	itemId: 'myacclogin',
	xtype: 'myaccountlogin',	
	config: {
		ref: {
			navView: 'mainNavView',
		},
		iconCls: 'user',
        cls: 'backgroundRightPanel',
		styleHtmlContent: true,
        title: 'Login',
		scrollable:true,
		items: [{
			xtype: 'fieldset',
			items: [{
                xtype: 'textfield',
				id: 'userfield',
                label: 'Username',
				placeHolder: 'Required'
            },
            {
                xtype: 'passwordfield',
				id: 'passfield',
                label: 'Password',
				placeHolder: 'Required'
            }],
		},
		{ xtype: 'spacer' },
		{
			xtype: 'button',
			itemId: 'btnMyAccLogin',
			text: 'Login',
            action: 'goMyaccmain'			
		},
		{ 
			xtype: 'spacer',
			height: 20
		},
		{
			html: 
				'<font color="white">For Student<br>' +
				'Please enter your admission number (eg 1234567A,<br>' +
				'found on your matriculation card) and TP password.<br><br>' +
				'For Staff<br>' +
				'Please enter your SIT Login ID and password.<br><br>' +
				'For External Member<br>' +
				'Please enter your NRIC(eg S1234567A) and password.</font>'
		}]
	},
	initialize: function () {
		// MajorProjectSenchaTouch.controller.Main.fireEvent('activatebomb', this);
		// this.showName();
		// MajorProjectSenchaTouch.app.getController('Main').activatebomb();
		// r.activatebomb();
	}
});
